package StructuralPattern.BridgePattern.shape;

import StructuralPattern.BridgePattern.color.Color;

public class Rectangle extends Shape {
    private int width;
    private int height;

    public Rectangle(int width, int height, Color color) {
        super(color);
        this.width = width;
        this.height = height;
    }

    @Override
    public void draw() {
        color.applyColor();
        System.out.println("绘制矩形，宽度为: " + width + " 高度为: " + height);
    }
}
